﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dia2Lib;

namespace Kokomo.Mirror.PeFormat.Symbols
{
	public class InjectedSourceTable : Table, IEnumerable<InjectedSourceFile>
	{
		public InjectedSourceTable(
			IDiaTable table,
			SymbolSource source
			)
			: base(table, source)
		{
		}

		public IEnumerator<InjectedSourceFile> GetEnumerator()
		{
			return new InjectedSourceFileEnumerator((IDiaEnumInjectedSources)this.DiaTable, this.Source);
		}

		System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
		{
			return this.GetEnumerator();
		}
	}
}
